package com.vote.controller;

import com.vote.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by jinghs
 * 2017/5/5.
 */
@Controller
public class TestController {
    @Autowired
    private TestService testService;

    @RequestMapping("/hello")
    public String test(){
        return "index";
    }

    @RequestMapping("/demo")
    public String demo(){
        return "demo1";
    }
}
